package com.ccb.jyzx.expand.ouapi.service.impl;

import com.ccb.jyzx.expand.ouapi.beans.UserDutyRef;
import com.ccb.jyzx.expand.ouapi.beans.sync.UserDutyRefSync;
import com.ccb.jyzx.expand.ouapi.dao.ouapi.UserDutyRefDao;
import com.ccb.jyzx.expand.ouapi.service.UserDutyRefService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author XIEFEI
 * @date 2019-11-13 14:34
 * @Description
 **/
@Service
public class UserDutyRefServiceImpl implements UserDutyRefService {
    @Autowired
    UserDutyRefDao userDutyRefDao;

    @Override
    public List<UserDutyRef> findByUserId(String userId) {
        return userDutyRefDao.findByUserId(userId);
    }
    @Override
    public List<UserDutyRefSync> getAllSync() {
        return userDutyRefDao.getAllSync();
    }

    @Override
    public void insert(UserDutyRefSync d) {
        userDutyRefDao.save(d);
    }

    @Override
    public void update(UserDutyRefSync d) {
        userDutyRefDao.update(d);
    }

    @Override
    public void deleteById(String id) {
        userDutyRefDao.deleteById(id);
    }


}
